package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping({"/", "", "index"})
    public String index() {
        return "index";
    }

    //假装是新需求
    @RequestMapping({"home"})
    public String home() {
        return "home";
    }
}
